#include "Threadpool.hpp"
#include <iostream>
#include <functional>

//typedef void*(*fun_t)(int,int);

class task
{
    typedef std::function<int(int, int)> func_t;
public:
    task(int x,int y,fun_t func)
    :_x(x)
    ,_y(y)
    {
        ;
    }
    int operator()()
    {
        return _func(_x,_y);
    }
private:
    int _x;
    int _y;
    func_t _func;
};